from random import randint

n = randint(1, 8)


def pascal(n):
    ls = [1]
    if(n == 1):
        print(ls)
        return ls

    up = pascal(n - 1)
    for i in range(1, n-1):
        tmp = up[i] + up[i-1]
        ls.append(tmp)
    ls.append(1)
    print(ls)
    return ls


pascal(n)
